<?php
namespace common\models;

use Yii;

/**
 * This is the model class for table "tally_attachment".
 *
 * @property int $id 附件id
 * @property int $tally_id 账本Id
 * @property int $tally_record_id 账单记录id
 * @property int $uid 创建者
 * @property string $file_name 文件路径
 * @property string $file_type 文件类型
 * @property string $created_time 创建时间
 * @property string $updated_time 更新时间
 */
class TallyAttachment extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'tally_attachment';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['tally_id', 'tally_record_id','tally_arap_id', 'uid'], 'integer'],
            [['created_time', 'updated_time'], 'safe'],
            [['file_name'], 'string', 'max' => 255],
            [['file_type'], 'string', 'max' => 30],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'tally_id' => 'Tally ID',
            'tally_record_id' => 'Tally Record ID',
            'tally_arap_id' => 'Tally Arap ID',
            'uid' => 'Uid',
            'file_name' => 'File Name',
            'file_type' => 'File Type',
            'created_time' => 'Created Time',
            'updated_time' => 'Updated Time',
        ];
    }
}
